#ifndef LRCPAGE_H
#define LRCPAGE_H

#include <QWidget>
#include <QPropertyAnimation>

namespace Ui {
class LrcPage;
}

class LrcPage : public QWidget
{
    Q_OBJECT

public:
    explicit LrcPage(QWidget *parent = nullptr);
    ~LrcPage();

    void parseLrcFile(const QString& path);

    int getLrcWordLineIndex(qint64 time);

    QString getLrcWordLineByIndex(int index);

    void showLrcWordLine(qint64 time);
private:
    Ui::LrcPage *ui;
    QPropertyAnimation *animation;
    QVector<QPair<qint64, QString>> lrcWordLines;
};

#endif // LRCPAGE_H
